<!--管理员添加-->
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!-- 导入头部top文件 start -->
<%@include file="../common/header.jsp" %>
<body>
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox-title">
                <h5>管理员信息</h5>
            </div>
            <div class="ibox-content">
                <form class="form-horizontal m-t" id="mainForm" method="post">
                    <input type="hidden" id="id" name="id" value="${model.id}"/>

                    <div class="form-group">
                        <label class="col-sm-3 control-label">姓名：*</label>

                        <div class="col-sm-8">
                            <input id="userName" name="userName" type="text" class="form-control" required=""
                                   value="${model.userName}" aria-required="true">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">用户头像：</label>
                        <div class="col-sm-8">
                            <div class="att-container">
                                <div class="img-box fl">
                                    <c:if test="${model.pic==null or model.pic==''}">
                                        <img id="pic-image" src="${path}/static/img/default.jpg" alt="用户头像" class="img-rounded" width="200px"
                                             height="200px"/>
                                    </c:if>
                                    <c:if test="${model.pic!=null and model.pic!=''}">
                                        <img id="pic-image" src="${staticServer}${model.pic}" alt="用户头像" class="img-rounded" width="200px"
                                             height="200px"/>
                                    </c:if>
                                    <div id="fileContainer" style="display: none"></div>
                                </div>
                                <div class="upload-container fl">
                                    <input type="file" name="file_upload" id="file_upload"/>
                                    <input type="hidden" name="pic" id="pic" value ="${model.pic}"/>
                                </div>
                            </div>

                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">邮箱：</label>

                        <div class="col-sm-8">
                            <input id="email" type="text" value="${model.email}" class="form-control" name="email">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">关键字：</label>

                        <div class="col-sm-8">
                            <input id="keyword" type="text" value="${model.keyword}" class="form-control" name="keyword">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">手机号码：</label>

                        <div class="col-sm-8">
                            <input id="mobile" type="number" value="${model.mobile}" class="form-control" name="mobile">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">授权代码：</label>

                        <div class="col-sm-8">
                            <input id="authCode" type="text" value="${model.authCode}" class="form-control" name="authCode">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">是否启动：</label>

                        <div class="col-sm-8">
                            <select id="enabled" name="enabled">
                                <option value="1">禁用
                                </option>
                                <option value="2">启用
                                </option>
                            </select>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-4 col-sm-offset-3">
                            <button class="btn btn-primary" type="submit" id="idSubmit">提交</button>
                        </div>
                    </div>
                </form>
                <script src="/static/js/jquery.min.js?v=2.1.4"></script>
                <script src="/static/js/bootstrap.min.js?v=3.3.5"></script>
                <script src="/static/js/content.min.js?v=1.0.0"></script>
                <script src="/static/js/plugins/validate/jquery.validate.min.js"></script>
                <script src="/static/js/plugins/validate/messages_zh.min.js"></script>
                <script src="/static/js/plugins/dialog/dialog-min.js"></script>
                <script src="/static/js/plugins/dialog/dialog-plus-min.js"></script>
                <script src="/static/js/plugins/upload/jquery.uploadify.min.js"></script>
                <script src="/static/js/att.js"></script>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">
    var id = "${model.id}";
    var status = "${status}";
</script>
<script src="/static/js/admin/sysUser.js"></script>
</body>
</html>
